<template>
  <BasicDrawer v-bind="$attrs" @register="registerDrawer" destroyOnClose title="优惠券领取记录" width="80%" :showFooter="false">
    <UserCouponIndex ref="goodsIndex"></UserCouponIndex>
  </BasicDrawer>
</template>
<script lang="ts" setup name="UserCouponDrawer">
import { getCurrentInstance } from 'vue';
import { BasicDrawer, useDrawerInner } from '@apps/antd-admin/src/components/drawer';
import UserCouponIndex from "./UserCouponIndex.vue";

const ctx: any = getCurrentInstance();

const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
  let record = data.record;
  ctx.refs['goodsIndex'].setSearchInfoProps(record.couponId);
});
</script>
